﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TCS.Web.MembersHome
{
    public partial class menu : System.Web.UI.Page
    {
        public string id = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["BangShangLogin_model"] != null)
            {
                TCS.Model.MemberLogin memberLogin = (TCS.Model.MemberLogin)Session["BangShangLogin_model"];
                this.id =memberLogin.Memberid.ToString();
                ////LabloginName.Text = mo.Codename;
                //DBind();
               // a1.HRef = "~/Exhibition/default.aspx?id=" + mo.Id.ToString();
            }
            else
            {
                LTP.Common.MessageBox.ShowAndRedirects(this.Page, "请先登录！", "login.aspx");

            }
        }
        protected void DBind()
        {
            //string time = DateTime.Now.ToLongDateString();
            //string t = DateTime.Today.DayOfWeek.ToString();
            //if (t == "Monday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期一";
            //}
            //if (t == "Tuesday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期二";
            //}
            //if (t == "Wednesday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期三";
            //}
            //if (t == "Thursday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期四";
            //}
            //if (t == "Friday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期五";
            //}
            //if (t == "Saturday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期六";
            //}
            //if (t == "Sunday")
            //{
            //    this.labtime.Text = time + "&nbsp;&nbsp;&nbsp;星期天";
            //}
        }
        protected void lbtnq_Click(object sender, EventArgs e)
        {
            Session.RemoveAll();
            Response.Redirect("~/membershome/WebForm1.aspx");
        }
    }
}

